package com.zhiche.lisa.oms.dao.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * oms tms 推送结算系统失败数据记录/成功需物理删除
 * </p>
 *
 * @author hongbo
 * @since 2018-10-10
 */
@TableName("lisa_interface_compensation")
public class InterfaceCompensation extends Model<InterfaceCompensation> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 接口标识 101:收入BMS新增失败,102...
     */
	private String type;
    /**
     * 失败数据内容
     */
	@TableField("data_content")
	private String dataContent;
    /**
     * 业务失败原因
     */
	@TableField("error_detail")
	private String errorDetail;
    /**
     * 重试次数 建议重试3次
     */
	@TableField("try_count")
	private Integer tryCount;
	@TableField("gmt_create")
	private Date gmtCreate;
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDataContent() {
		return dataContent;
	}

	public void setDataContent(String dataContent) {
		this.dataContent = dataContent;
	}

	public String getErrorDetail() {
		return errorDetail;
	}

	public void setErrorDetail(String errorDetail) {
		this.errorDetail = errorDetail;
	}

	public Integer getTryCount() {
		return tryCount;
	}

	public void setTryCount(Integer tryCount) {
		this.tryCount = tryCount;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "InterfaceCompensation{" +
			", id=" + id +
			", type=" + type +
			", dataContent=" + dataContent +
			", errorDetail=" + errorDetail +
			", tryCount=" + tryCount +
			", gmtCreate=" + gmtCreate +
			", gmtModify=" + gmtModify +
			"}";
	}
}
